/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2024-05-25 19:29:07
 * @LastEditTime: 2024-07-14 18:52:56
 * @FilePath: /nest_study/server/src/modules/system/menu/menu.module.ts
 */
import { Global, Module } from '@nestjs/common';
import { MenuService } from './menu.service';
import { MenuController } from './menu.controller';
import { SystemMenuEntity } from './entities/menu.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SystemRoleEntity } from '../role/entities/role.entity';

@Global()
@Module({
  imports: [
    TypeOrmModule.forFeature([
      SystemMenuEntity,
      SystemRoleEntity
    ]),
  ],
  controllers: [MenuController],
  providers: [MenuService],
  exports: [MenuService],
})
export class MenuModule { }
